package com.ytjj.qmyx.mall.model.vo;

import lombok.Data;

import java.util.Objects;

/**
 *
 **/
@Data
public class DynamicVO {

    /**id**/
    private Integer id;

    /**封面图**/
    private String img;

    /**评论**/
    private String content;

    /**点击量**/
    private Integer praiseNum;

    /**用户头像**/
    private String headImg;
    
    /** 
    * 测评标题
    *
    */ 
    private String title;

    /**是否严选官；0：否；1：是**/
    private Integer isQuality;

    /**用户名称**/
    private String nickname;

    /**用户名称**/
    private String userName;

    /**图片/视频**/
    private String video;

    /**video合计**/
    private Integer sum;

    /**动态类型：图文 img 视频 video**/
    private String dynamicType;

    /****/
    private String userType;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DynamicVO dynamicVO = (DynamicVO) o;
        return Objects.equals(id, dynamicVO.id) &&
                Objects.equals(img, dynamicVO.img) &&
                Objects.equals(content, dynamicVO.content) &&
                Objects.equals(praiseNum, dynamicVO.praiseNum) &&
                Objects.equals(headImg, dynamicVO.headImg) &&
                Objects.equals(title, dynamicVO.title) &&
                Objects.equals(isQuality, dynamicVO.isQuality) &&
                Objects.equals(nickname, dynamicVO.nickname) &&
                Objects.equals(video, dynamicVO.video) &&
                Objects.equals(sum, dynamicVO.sum) &&
                Objects.equals(dynamicType, dynamicVO.dynamicType) &&
                Objects.equals(userType, dynamicVO.userType);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, img, content, praiseNum, headImg, title, isQuality, nickname, video, sum, dynamicType, userType);
    }
}
